package util;

import javafx.application.Platform;
import javafx.scene.control.Alert;

public class Warn {
    public static void warn(String head,String content){
        Platform.runLater(() -> {
            Alert alert = new Alert(Alert.AlertType.WARNING);
            alert.setTitle("通知");
            alert.setHeaderText(head);
            alert.setContentText(content);
            alert.showAndWait();
        });
    }
}
